package com.liyi.letter.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @TableName employee
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "employee")
@Data
public class Employee extends BaseEntity {


    /**
     *
     */
    @TableField(value = "name")
    private String name;

    /**
     *
     */
    @TableField(value = "department_id")
    private Long departmentId;

    /**
     *
     */
    @TableField(value = "password")
    private String password;

    /**
     *
     */
    @TableField(value = "gender")
    private Integer gender;
    /**
     *
     */
    @TableField(value = "photo")
    private String photo;
    /**
     *
     */

    @TableField(value = "age")
    private Integer age;

    /**
     *
     */
    @TableField(value = "phone")
    private String phone;

    /**
     *
     */
    @TableField(value = "address")
    private String address;

    /**
     *
     */
    @TableField(value = "username")
    private String username;



    @TableField(exist = false)
    private String departmentName;

    @TableField(exist = false)
    List<Role> roles;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
